*{
    margin: 0;
    padding: 0;
}
body{
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    color: #000;
    background-color: #f2f2f2;
    overflow-x: hidden;
    /* iso的默认背景色 */
    -webkit-tap-highlight-color: transparent;
}
a{
    text-decoration: none;
    color: #222;
}
div{
    box-sizing: border-box;
}
ul{
    list-style: none;
}
/* 设置search-box部分的样式 */
.search-box{
    width: 100%;
    display: flex;
    border-top: 1px solid #ccc;
    background-color: #f6f6f6;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0px;
    left: 0px;
}
.search{
    flex: 1;
}
.user{
    width: 44px;
    height: 44px;
    /* background-color: red; */
    font-size: 12px;
    text-align: center;
    color: #099FDE;
}
.user:before{
    content: "";
    display: block;
    width: 23px;
    height: 23px;
    background: url("../images/sprite.png") no-repeat -59px -194px;
    background-size: 104px auto;
    margin: 5px auto 0px
}


.search{
    height: 26px;
    border: 1px solid #ccc;
    flex: 1;
    margin: 7px 10px;
    border-radius: 5px;
    position: relative;
    font-size: 12px;
    color: #666;
    line-height: 24px;
    padding-left: 25px;
    box-shadow: 0px 2px 4px rgba(0,0,0,.2);
}
.search:before{
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background: url("../images/sprite.png") no-repeat -59px -279px;
    background-size: 104px auto;
    position: absolute;
    top: 5px;
    left: 5px;
}


/* 设置焦点图模块的样式 */
.focus{
    margin-top: 44px;
}
.focus img{
    width: 100%;
}

/* 局部导航栏 */
.local-nav{
    height: 64px;
    background-color: #fff;
    border-radius: 8px;
    margin: 3px 4px;
    display: flex;
}
.local-nav li{
    flex: 1;
}
.local-nav a{
    display: flex;
    flex-direction: column;
    align-items: center; 
    font-size: 12px;
}
.local-nav li [class^="local-nav-icon"]{
    width: 32px;
    height: 32px;
    background-color: pink;
    margin-top: 8px;
    margin-bottom: 2px;
    background: url("../images/localnav_bg.png") no-repeat 0 0;
    background-size: 32px auto;
}
.local-nav li .local-nav-icon-icon2{
    background-position: 0 -32px;
}
.local-nav li .local-nav-icon-icon3{
    background-position: 0 -64px;
}
.local-nav li .local-nav-icon-icon4{
    background-position: 0 -96px;
}
.local-nav li .local-nav-icon-icon5{
    background-position: 0 -128px;
}

/* 设置主导航栏部分的样式 */
nav{
    border-radius: 8px;
    margin: 0px 4px 3px;
    overflow: hidden;
}
.nav-common{
    /* background-color: pink; */
    height: 88px;
    display: flex;
}
.nav-common:nth-child(1){
    background: -webkit-linear-gradient(left,#FA5A55,#FA994D);
}
.nav-common:nth-child(2){
    margin: 3px 0px;
    background: -webkit-linear-gradient(left,#4B59ED,#53BCED);
}
.nav-common:nth-child(3){
    background: -webkit-linear-gradient(left,#34C2A9,#6CD559);
}
.nav-items{
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* -n+2就是选择前面两个 */
.nav-items:nth-child(-n+2){
    border-right: 1px solid #fff;
}
.nav-items a{
    flex: 1;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px rgba(0,0,0,.2);
}
.nav-items a:nth-child(1){
    border-bottom: 1px solid #fff;
}
.nav-items:nth-child(1) a{
    border: 0;
    background: url("../images/hotel.png") no-repeat bottom center;
    background-size: 121px auto;
}
.nav-common:nth-child(2) .nav-items:nth-child(1) a{
    border: 0;
    background: url("../images/sprite_05.png") no-repeat bottom center;
    background-size: 50px auto;
}
.nav-common:nth-child(3) .nav-items:nth-child(1) a{
    border: 0;
    background: url("../images/sprite_02.png") no-repeat bottom center;
    background-size: 40px auto;
}


/* 设置测导航栏的样式 */
.aside-nav{
    border-radius: 8px;
    background-color: #fff;
    margin: 0 4px;
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0px;
}
.aside-nav li{
    /* 里面的子盒子可以写百分比 */
    flex: 20%;

}
.aside-nav a{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}
.aside-nav-icon{
    width: 28px;
    height: 28px;
    background:url("../images/subnav-bg.png");  
    margin: 4px 0px 2px;  
    background-size: 28px auto;
}
.aside-nav a span{
    font-size: 14px;
}

.aside-nav li:nth-child(2) .aside-nav-icon{
    background-position: 0 -28px;
}
.aside-nav li:nth-child(3) .aside-nav-icon{
    background-position: 0 -61px;
}
.aside-nav li:nth-child(4) .aside-nav-icon{
    background-position: 0 -97px;
}
.aside-nav li:nth-child(5) .aside-nav-icon{
    background-position: 0 -128px;
}
.aside-nav li:nth-child(6) .aside-nav-icon{
    background-position: 0 -162px;
}
.aside-nav li:nth-child(7) .aside-nav-icon{
    background-position: 0 -197px;
}
.aside-nav li:nth-child(8) .aside-nav-icon{
    background-position: 0 -227px;
}
.aside-nav li:nth-child(9) .aside-nav-icon{
    background-position: 0 -255px;
}
.aside-nav li:nth-child(10) .aside-nav-icon{
    background-position: 0 -284px;
}


/* 设置销售模块的样式 */
.sales-box{
    border-top: 1px solid #ccc;
    background-color: #fff;
    margin: 4px;
}
.sales-hd{
    height: 44px;
    border-bottom: 1px solid #ccc;
}
.sales-hd{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
}
.sales-hd .icon-gg{
    width: 79px;
    height: 20px;
    background: url("../images/hot.png") no-repeat 0px -15px;
    background-size: 79px auto;
}
.sales-hd .icon-gg:after{
    content: "";
    display: block;
    width: 36px;
    height: 15px;
    background: url("../images/guanggao.png") no-repeat;
    background-size: 36px auto;
    margin-left: 85px;
    margin-top: 5px;
}
.sales-hd a{
    font-size: 14px;
    background: -webkit-linear-gradient(left,#FF506A,#FF6BC3);
    height: 20px;
    line-height: 20px;
    border-radius: 20px;
    padding: 0px 10px;
}

.sales-bd{
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.sales-bd li{
    flex: 50%;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
}
.sales-bd li img{
    width: 100%;
}
.sales-bd li:nth-child(odd){
    border-right: 1px solid #ccc;
}



/* 设置footer部分的样式 */
footer ul{
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ccc;
    padding: 10px 0px;
}
footer li{
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer ul img{
    width: 20px;
    margin-bottom: 4px;
}
